package com.example.springboot.SpringCloud.Service;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Component
@RestController
@RequestMapping("/OrderService")
@RefreshScope
public class OrderService {

    @Value("${testText}")
    private String testText;

    @GetMapping("/t1")
    public String t1(){
        System.out.println("this is /OrderService/t1");
        return "生产者提供服务OrderService/t1返回值" + testText;
    }


}
